package com.lyc.service;

import com.github.pagehelper.PageInfo;
import com.lyc.pojo.Address;

import java.util.List;

public interface AddressService {
    //增加
    public List<Address> addAddress(Address address);
    //修改
    public List<Address> updateAddress( Address address);
    //删除
    public List<Address> deleteAddress(Integer aid,Integer uid);
    //查询当前用户所有收货地址
    public List<Address> selectAddress(Integer uid);
    //查一个
    public Address selectOne(Integer aid);

    /*后台*/
    public PageInfo<Address> getAddressByPage(Integer page, Integer limit);

    public List<Address> selectAll();
}
